package com.qzsoft.zhjd.materiel.modules.materielinventory.dto;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;

/**
 * @ClassName MaterielInventoryImportDto
 * @Description 数据导入对象
 * @author linhuawei
 * @since 2022-04-05
 */
@Data
public class MaterielInventoryImportDto {

    /**
     * 开始时间
     */
    @Excel(name = "开始时间", width = 20)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date beginTime;

    /**
     * 结束时间
     */
    @Excel(name = "结束时间", width = 20)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date endTime;

    /**
     * 材料名称
     */
    @Excel(name = "材料名称", width = 20)
    private String materielItemName;

    /**
     * 规格
     */
    @Excel(name = "规格", width = 20)
    private String materielItemSpec;

    /**
     * 期初余额
     */
    @Excel(name = "期初库存", type = 10, width = 16)
    private BigDecimal beginBalance;

    /**
     * 期末余额
     */
    @Excel(name = "期末余额", type = 10, width = 16)
    private BigDecimal endBalance;

    /**
     * 导入结果
     */
    private boolean success;

    /**
     * 错误信息
     */
    private String errorMesg;

}
